package com.k2091.washcar.mapper;

import com.k2091.washcar.entity.FormInline;
import com.k2091.washcar.entity.UsersCar;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2021-06-02
 */
public interface UsersCarMapper extends BaseMapper<UsersCar> {

    List<UsersCar> selectCar(FormInline formInline);

    @Select("select * from users_car where id=#{id}")
    UsersCar selectById(Long id);

    @Update("update users_car set status=#{status} where id=#{id}")
    void upStatus(@Param("id")Long id, @Param("status")int status);


}